﻿using Apps.Model.Dto;
using Microsoft.AspNetCore.Mvc;

// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace Apps.WebApi.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class LoginController : ControllerBase
    {
        [Route("login")]
        [HttpPost] 
        public IActionResult Login([FromBody] LoginDto loginBody)
        {
            return Ok(new { code = 200, msg = "登录成功", data = loginBody });
        }
    }
}
